package
{
	import flash.display.DisplayObject;
	import flash.display.Sprite;

	public class NativeWorld extends Sprite implements IWorld
	{
		private var m_scene:IScene;
		public function NativeWorld()
		{
			m_scene = Globals.rendererFactory.getScene();
			addChild(m_scene as DisplayObject);
		}
		
		public function setCameraPosition(x:Number, y:Number):void{
			(m_scene as DisplayObject).x = -x;
			(m_scene as DisplayObject).y = -y;
		}
		
		public function getScene():IScene{
			return m_scene;
		}
	}
}